﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UniversaleMain.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="FYPDemo.ChangePassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 class="h1_title">Change Password</h1>
    <table>
        <tr>
            <td>
                <asp:Label ID="lblOldPw" runat="server" Text="Old Password: "></asp:Label>
            </td>

            <td>
                <asp:TextBox ID="txtOldPw" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ForeColor="Red" 
                ErrorMessage="Old Password field must not be empty" ControlToValidate="txtOldPw"></asp:RequiredFieldValidator>
            </td>
        </tr>

        <tr>
            <td>
                <asp:Label ID="lblNewPw" runat="server" Text="New Password: "></asp:Label>
            </td>

            <td>
                <asp:TextBox ID="txtNewPw" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ForeColor="Red" 
                ErrorMessage="New Password field must not be empty" ControlToValidate="txtNewPw"></asp:RequiredFieldValidator>
            </td>
        </tr>

        <tr>
            <td>
                <asp:Label ID="lblConfirmNewPw" runat="server" Text="Confirm New Password: "></asp:Label>
            </td>

            <td>
                <asp:TextBox ID="txtConfirmNewPw" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ForeColor="Red" Display="Dynamic"
                ErrorMessage="Confirm new password field must not be empty" ControlToValidate="txtConfirmNewPw"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ForeColor="Red" Display="Dynamic"
                ErrorMessage="Password is different" ControlToValidate="txtConfirmNewPw" ControlToCompare="txtNewPw"></asp:CompareValidator>
            </td>
        </tr>

        <tr>
            <td>
                <asp:Button ID="btnChange" runat="server" Text="Change" 
                    onclick="btnChange_Click" CssClass="buttonbg" />
            </td>
        </tr>
    </table>
</asp:Content>
